package com.hsylient.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsylient.common.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;


/**
 * @author hsylient
 * @description 针对表【student】的数据库操作Mapper
 * @createDate 2024-10-09 10:31:27
 * @Entity com.hsylient.mybatis.entity.Student
 */
public interface StudentMapper extends BaseMapper<Student> {

    int insertBatch(@Param("studentCollection") Collection<Student> studentCollection);

    Student null2zero(@Param("id") Long id);

    List<Student> list();

    List<Student> unionAll();

//    StudentDto selectJson(@Param("id") Long id);

    int updateTime(@Param("name") String name);

}
